<?php      
$number="$_SERVER[REMOTE_ADDR]";
if(isset($_POST[ok])){
if($_POST[txtsearch]==''){
echo "<div class='tb'>Điền chự cần đổi vô text hấy! Chẹp Chẹp</div>";
}else{
$site=$_POST[txtsearch];
}
echo json_encode($site);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href='css/style.css' rel='stylesheet' type='text/css' />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<fieldset>
<legend>Transitional Unicode Java</legend>
<form action='getjsons.php' method='post'>
<textarea name='txtsearch' cols="51" rows="1"></textarea><br />
<input class='a' type='submit' name='ok' value='Submit' />
</form>
</fieldset>
</body>
</html>